package com.developer.platform.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.developer.platform.infrastructure.enums.StatusEnum;
import com.veeker.mybatis.basic.BaseEntity;

/**
 * 定时任务
 *
 * @author ：qiaoliang
 * @date ：2021-01-07
 */
@TableName(value = "sys_quartz_job",autoResultMap = true)
public class QuartzJob extends BaseEntity<Long,Long> {
  /** 任务名称 **/
  private String name;
  /** 任务分组 **/
  private String subgroup;
  /** 执行类 **/
  private String jobClass;
  /** 执行表达式 **/
  private String core;
  /** 状态 **/
  private StatusEnum status;
  /** 任务执行时所需参数 **/
  private String jobData;

  public QuartzJob() {
  }

  public QuartzJob(StatusEnum status) {
    this.status = status;
  }

  public QuartzJob(String name, String subgroup, String jobClass, String core,
      StatusEnum status) {
    this.name = name;
    this.subgroup = subgroup;
    this.jobClass = jobClass;
    this.core = core;
    this.status = status;
  }

  public QuartzJob(String name, String subgroup, String jobClass, String core,
      StatusEnum status, String jobData) {
    this.name = name;
    this.subgroup = subgroup;
    this.jobClass = jobClass;
    this.core = core;
    this.status = status;
    this.jobData = jobData;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getSubgroup() {
    return subgroup;
  }

  public void setSubgroup(String subgroup) {
    this.subgroup = subgroup;
  }

  public String getJobClass() {
    return jobClass;
  }

  public void setJobClass(String jobClass) {
    this.jobClass = jobClass;
  }

  public String getCore() {
    return core;
  }

  public void setCore(String core) {
    this.core = core;
  }

  public StatusEnum getStatus() {
    return status;
  }

  public void setStatus(StatusEnum status) {
    this.status = status;
  }

  public String getJobData() {
    return jobData;
  }

  public void setJobData(String jobData) {
    this.jobData = jobData;
  }
}
